package cn.edu.lcvc.ebuy_lyj.dao;

import cn.edu.lcvc.ebuy_lyj.model.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AdminDao {
    int countByUsernameAndPassword(@Param("username") String username,@Param("password") String password);
    Admin getUsername(String username);
    List<Admin> findAll();
    int deleteById(Integer id);
    int addAdmin(@Param("username") String username, @Param("password") String password, @Param("name") String name, @Param("sex") int sex, @Param("unlocked") boolean unlocked, @Param("createTime") Date createTIme);
    int updateAdmin(@Param("id") int id,@Param("username") String username,@Param("name") String name,@Param("sex") int sex, @Param("unlocked") boolean unlocked, @Param("createTime") Date createTIme);
    Admin getAdminById(Integer id);
}
